<extend name="Layout/dialog" />
<block name="css"></block>
<block name="style"></block>
<block name="js"></block>
<block name="script"></block>
<block name="model">合同关联信息</block>
<block name="controller">合同关联信息</block>
<block name="action">编辑合同关联信息</block>
<block name="desc"></block>
<block name="content">
<div class="box box-danger">
	<div class="box-header with-border">
		<h3 class="box-title">编辑合同关联信息</h3>
	</div>
	<notempty name="data">
		<form class="form-horizontal" action="{:U('save')}" method="post" rel-action="form" rel-success="reload()">
			<div class="box-body">
				<div class="form-group">
					<label class="col-sm-2 control-label"><span class="text-red">*</span>合同编号</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" name="contract_id" value="{$data.relation_contract_id}" placeholder="请输入合同编号"  autocomplete="off">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">网签地址</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" name="neturl" value="{$data.relation_neturl}" placeholder="请输入网签地址"  autocomplete="off">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">签约场景</label>
					<div class="col-sm-10 radio">
						<label>
							<if condition="$data.relation_scenes == 'FIRST'">
								<input type="radio" name="scenes" value="1" checked="checked">首次网签
							<else />
								<input type="radio" name="scenes" value="1">首次网签
							</if>
						</label>
						<label>
							<if condition="$data.relation_scenes == 'SECOND'">
								<input type="radio" name="scenes" value="2" checked="checked">二次网签
							<else />
								<input type="radio" name="scenes" value="2">二次网签
							</if>
						</label>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">状态</label>
					<div class="col-sm-10 radio">
						<label>
							<if condition="$data.relation_status == 'NORMAL'">
								<input type="radio" name="status" value="1" checked="checked">正常
							<else />
								<input type="radio" name="status" value="1">正常
							</if>
						</label>
						<label>
							<if condition="$data.relation_status == 'DISABLE'">
								<input type="radio" name="status" value="0" checked="checked">锁定
							<else />
								<input type="radio" name="status" value="0">锁定
							</if>
						</label>
					</div>
				</div>
			</div>
			<input type="hidden" name="id" value="{$data.relation_id}">
			<div class="box-footer">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-default">保存</button>
					<button type="button" class="btn btn-default" rel-action="dialog-close">关闭</button>
				</div>
			</div>
		</form>
	</notempty>
	<empty name="data">
	<div class="box-body">
		<div class="alert alert-error alert-dismissible">
			<h4><i class="icon fa fa-warning"></i>暂无记录</h4>
			参数有误
		</div>
	</div>
	</empty>
</div>
</block>